package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Tag;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TagMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Tag record);

    List<Tag> getStrategyId(Long strategyId);

    List<Tag> selectAll();

    int updateByPrimaryKey(Tag record);

    void insertMyTags(String myTag);

    Long selectByMyTagsName(String myTag);

    void insertRelation(@Param("num") Long num, @Param("strategyId") Long strategyId);
}